import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'home-setting-';

export default {
    path: '/home/setting',
    name: 'home-setting',
    redirect: {
        name: `${pre}basics-project`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'basics/project',
            name: `${pre}basics-project`,
            meta: {
                ...meta,
                cache: true,
                title: '项目列表'
            },
            component: () => import('@/pages/home/setting/basics/project')
        },
        {
            path: 'basics/post',
            name: `${pre}basics-post`,
            meta: {
                ...meta,
                cache: true,
                title: '岗位列表'
            },
            component: () => import('@/pages/home/setting/basics/post')
        },
        {
            path: 'basics/role',
            name: `${pre}basics-role`,
            meta: {
                ...meta,
                cache: true,
                title: '角色列表'
            },
            component: () => import('@/pages/home/setting/basics/role')
        },
        {
            path: 'basics/risk',
            name: `${pre}basics-risk`,
            meta: {
                ...meta,
                cache: true,
                title: '风控类型'
            },
            component: () => import('@/pages/home/setting/basics/risk')
        },
        {
            path: 'basics/personnel',
            name: `${pre}basics-personnel`,
            meta: {
                ...meta,
                cache: true,
                title: '员工管理'
            },
            component: () => import('@/pages/home/setting/basics/personnel')
        },
        {
            path: 'basics/disease',
            name: `${pre}basics-disease`,
            meta: {
                ...meta,
                cache: true,
                title: '病种列表'
            },
            component: () => import('@/pages/home/setting/basics/disease')
        },
        {
            path: 'basics/position',
            name: `${pre}basics-position`,
            meta: {
                ...meta,
                cache: true,
                title: '部位列表'
            },
            component: () => import('@/pages/home/setting/basics/position')
        },
        {
            path: 'marketing/diagnosis',
            name: `${pre}marketing-diagnosis`,
            meta: {
                ...meta,
                cache: true,
                title: '就诊类型'
            },
            component: () => import('@/pages/home/setting/marketing/diagnosis')
        },
        {
            path: 'marketing/effect',
            name: `${pre}marketing-effect`,
            meta: {
                ...meta,
                cache: true,
                title: '效果类型'
            },
            component: () => import('@/pages/home/setting/marketing/effect')
        },
        {
            path: 'marketing/risk',
            name: `${pre}marketing-risk`,
            meta: {
                ...meta,
                cache: true,
                title: '风控类型'
            },
            component: () => import('@/pages/home/setting/marketing/risk')
        },

        {
            path: 'marketing/treatment',
            name: `${pre}marketing-treatment`,
            meta: {
                ...meta,
                cache: true,
                title: '诊疗评估'
            },
            component: () => import('@/pages/home/setting/marketing/treatment')
        },
        {
            path: 'marketing/returnVisit',
            name: `${pre}marketing-returnVisit`,
            meta: {
                ...meta,
                cache: true,
                title: '回访状态'
            },
            component: () => import('@/pages/home/setting/marketing/returnVisit')
        },
        {
            path: 'marketing/source',
            name: `${pre}marketing-source`,
            meta: {
                ...meta,
                cache: true,
                title: '来源渠道'
            },
            component: () => import('@/pages/home/setting/marketing/source')
        },

        {
            path: 'managementData/dataExport',
            name: `${pre}managementData-dataExport`,
            meta: {
                ...meta,
                cache: true,
                title: '数据导出'
            },
            component: () => import('@/pages/home/setting/managementData/export')
        },
        {
            path: 'managementData/exportLog',
            name: `${pre}managementData-exportLog`,
            meta: {
                ...meta,
                cache: true,
                title: '导出日志'
            },
            component: () => import('@/pages/home/setting/managementData/log')
        },
        {
            path: 'marketing/label',
            name: `${pre}marketing-label`,
            meta: {
                ...meta,
                cache: true,
                title: '标签列表'
            },
            component: () => import('@/pages/home/setting/marketing/label')
        },
        {
            path: 'outpatient/room',
            name: `${pre}outpatient-room`,
            meta: {
                ...meta,
                cache: true,
                title: '诊室'
            },
            component: () => import('@/pages/home/setting/outpatient/room')
        },
        {
            path: 'outpatient/doctor',
            name: `${pre}outpatient-doctor`,
            meta: {
                ...meta,
                cache: true,
                title: '医生'
            },
            component: () => import('@/pages/home/setting/outpatient/doctor')
        },
        {
            path: 'outpatient/medicine',
            name: `${pre}outpatient-medicine`,
            meta: {
                ...meta,
                cache: true,
                title: '输液药品'
            },
            component: () => import('@/pages/home/setting/outpatient/medicine')
        },
        {
            path: 'outpatient/treatmentRoom',
            name: `${pre}outpatient-treatmentRoom`,
            meta: {
                ...meta,
                cache: true,
                title: '治疗室'
            },
            component: () => import('@/pages/home/setting/outpatient/treatmentRoom')
        },
        {
            path: 'outpatient/treatmentProject',
            name: `${pre}outpatient-treatmentProject`,
            meta: {
                ...meta,
                cache: true,
                title: '治疗项目'
            },
            component: () => import('@/pages/home/setting/outpatient/treatmentProject')
        },
        {
            path: 'power/personnel',
            name: `${pre}power-personnel`,
            meta: {
                ...meta,
                cache: true,
                title: '人员'
            },
            component: () => import('@/pages/home/setting/power/personnel')
        },
        {
            path: 'power/menu',
            name: `${pre}menu`,
            meta: {
                ...meta,
                cache: true,
                title: '菜单'
            },
            component: () => import('@/pages/home/setting/power/menu')
        },
        {
            path: 'power/module',
            name: `${pre}module`,
            meta: {
                ...meta,
                cache: true,
                title: '模块'
            },
            component: () => import('@/pages/home/setting/power/module')
        },
        {
            path: 'power/department',
            name: `${pre}power-department`,
            meta: {
                ...meta,
                cache: true,
                title: '部门'
            },
            component: () => import('@/pages/home/setting/power/department')
        },
        {
            path: 'power/role',
            name: `${pre}power-role`,
            meta: {
                ...meta,
                // cache: true,
                title: '角色'
            },
            component: () => import('@/pages/home/setting/power/role')
        },
        {
            path: 'power/power',
            name: `${pre}power-power`,
            meta: {
                ...meta,
                cache: true,
                title: '权限'
            },
            component: () => import('@/pages/home/setting/power/power')
        },
        {
            path: 'overall',
            name: `${pre}overall`,
            meta: {
                ...meta,
                cache: true,
                title: '全局设置'
            },
            component: () => import('@/pages/home/setting/overall')
        },
        {
            path: 'business',
            name: `${pre}business`,
            meta: {
                ...meta,
                cache: true,
                title: '业务设置'
            },
            component: () => import('@/pages/home/setting/business')
        }
    ]
};
